package com.blog.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blog.entity.ArticleComment;
import com.blog.mapper.ArticleCommentMapper;
import com.blog.service.ArticleCommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author gxcc
 * @create 2021/11/13 18:10
 */
@Service
public class ArticleCommentServiceImpl extends ServiceImpl<ArticleCommentMapper, ArticleComment> implements ArticleCommentService {


    @Resource
    ArticleCommentMapper commentMapper;

    @Override
    public List<Map<String, Object>> queryCommentById(String articleId) {
        return commentMapper.queryCommentById(articleId);
    }

    @Override
    public List<Map<String, Object>> queryCommentInfo() {
        return commentMapper.queryCommentInfo();
    }

    @Override
    public List<Map<String, Object>> queryCommentByCondition(String comment,String username) {
        return commentMapper.queryCommentByCondition(comment,username);
    }
}
